package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class Image.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>iso_639_1</li>
 * 		<li>file_path</li>
 * 		<li>height</li>
 * 		<li>width</li>
 * 		<li>aspect_ratio</li>
 * 	</ul>
 * </p>	 
 * @author Tanmoy
 */
public class Image extends Base implements Serializable {

	private static final long serialVersionUID = 1023235528569309230L;

	@SerializedName("aspect_ratio")
	private double aspectRatio;
	
	@SerializedName("file_path")
	private String filePath;
	
	@SerializedName("height")
	private int height;
	
	@SerializedName("width")
	private int width; 
	
	/**
	 * Default Constructor.
	 */
	public Image() {
		
	}

	/**
	 * Gets the aspect ratio.
	 *
	 * @return 
	 * 		The aspect ratio
	 */
	public double getAspectRatio() {
		return aspectRatio;
	}

	/**
	 * Sets the aspect ratio.
	 *
	 * @param aspectRatio 
	 * 		The new aspect ratio
	 */
	public void setAspectRatio(double aspectRatio) {
		this.aspectRatio = aspectRatio;
	}

	/**
	 * Gets the file path.
	 *
	 * @return 
	 * 		The file path
	 */
	public String getFilePath() {
		return filePath;
	}

	/**
	 * Sets the file path.
	 *
	 * @param filePath 
	 * 		The new file path
	 */
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	/**
	 * Gets the height.
	 *
	 * @return 
	 * 		The height
	 */
	public int getHeight() {
		return height;
	}

	/**
	 * Sets the height.
	 *
	 * @param height 
	 * 		The new height
	 */
	public void setHeight(int height) {
		this.height = height;
	}

	/**
	 * Gets the width.
	 *
	 * @return 
	 * 		The width
	 */
	public int getWidth() {
		return width;
	}

	/**
	 * Sets the width.
	 *
	 * @param width 
	 * 		The new width
	 */
	public void setWidth(int width) {
		this.width = width;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {		
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("iso_639_1:").append("\"").append(iso_639_1).append("\"").
			append(",").
			append("file_path:").append("\"").append(filePath).append("\"").
			append(",").
			append("height:").append(height).
			append(",").
			append("width:").append(width).
			append(",").
			append("aspect_ratio:").append(aspectRatio).
			append("}");
		return builder.toString();
	}
}
